<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/Public/Admin/css/admin.css">
    <script src="/Public/Admin/js/jquery.js"></script>
    <script src="/Public/Admin/js/pintuer.js"></script>  
    <script src="/Public/js/jquery-2.1.1.min.js"></script>  
    <script src="/Public/js/layer/layer.js"></script>
</head>
<body>
<!-- 导航栏结束 -->
<div class="padding border-bottom">
<ul class="search" style="padding-left:10px;">
	<li>
		<a class="button border-main icon-plus-square-o" href="{:U('Banner/addBanner')}">添加轮播</a>
	</li>
</ul>
</div>
<div class="panel admin-panel">
   <div class="tab-pane fade in active" id="home">
		<table class="table table-hover text-center">
			<tr>
				<th width="15%">标题</th>
				<th width="10%">图片</th>
				<th width="30%">链接地址</th>
				<th width="10%">排序</th>
				<th width="10%">添加时间</th>
				<th width="10%">状态</th>
				<th width="10%">操作</th>
			</tr>
			<foreach name="list" item="v">
				<tr>
					<td>{$v['title']}</td>
					<td>
					<notempty name="v.pic">
						<img src="{$v.pic}" style="width:80px;height:60px;">
					</notempty>
					<empty name="v.pic">
						暂无图片
					</empty>
					</td>
					<td>{$v['url']}</td>
					<td>{$v['sort']}</td>
					<td>{$v.add_time|date='Y-m-d H:i:s',###}</td>
					<td>
					<eq name="v.status" value="0">
					隐藏
					<else/>
					显示
					</eq>
					</td>
					<td>
						<a href="{:U('Banner/addBanner',array('id'=>$v['id']))}">修改</a> |
						<a href="javascript:if(confirm('确定删除？'))location='{:U('Admin/Banner/delBanner',array('id'=>$v['id']))}'">删除</a>|
						<a href="{:U('Banner/open', array('id'=>$v['id']))}">
						<eq name="v.status" value="0">
						显示
						<else/>
						隐藏
						</eq>
                               <!-- <if condition="$v.status eq 1">隐藏</if>
                                <if condition="$v.status eq 0">显示</if>-->
                       </a>
					</td>
				</tr>
			</foreach>
		</table>
   </div>
</div>
<bootstrapjs />
</body>
</html>
<SCRIPT Language=VBScript><!--

//--></SCRIPT>